package com.mutual.reins.interf.service.impl;

import com.mutual.reins.interf.entity.ReinsInterFlog;
import com.mutual.reins.interf.mapper.ReinsInterFlogMapper;
import com.mutual.reins.interf.service.IReinsInterFlogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author CodeGenerate
 * @since 2021-03-30
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ReinsInterFlogServiceImpl<reinsInterFlog> extends ServiceImpl<ReinsInterFlogMapper, ReinsInterFlog> implements IReinsInterFlogService {

    @Autowired
    private ReinsInterFlogMapper reinsInterFlogMapper;

    @Override
    public List<ReinsInterFlog> selectReinsInterFlogList(String cerTiNo) {
        return reinsInterFlogMapper.selectReinsInterFlogList(cerTiNo);
    }

    /**
     * 获取按照业务号取最大序号
     *
     * @param cerTiNo 业务号
     * @return 最大序号
     */
    @Override
    public Integer selectMaxSerialNo(String cerTiNo) {
        return reinsInterFlogMapper.selectMaxSerialNo(cerTiNo);
    }
}
